# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-class-accessor-chained
pkgver=0.01
pkgrel=10
pkgdesc="make chained accessors"
arch=('any')
url="https://search.cpan.org/dist/Class-Accessor-Chained"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0' 'perl-class-accessor')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/R/RC/RCLAMP/Class-Accessor-Chained-$pkgver.tar.gz)
sha256sums=('a5bf49d3804f83ad25a1b16f327d14d4cbee2270132104b28705031dbccc34d2')

build() {
  cd  "$srcdir"/Class-Accessor-Chained-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/Class-Accessor-Chained-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
